<div id='user_profil'>
	<img src="/uploads/<?php echo $info_user->row()->photo; ?> " name='photo' height="110" width="90"/>
	<form method="post" action='profiles/edit' />
	<br/>
	<?php 		
	echo form_submit('','modifier profil');
	echo form_close();
	?>
</div>
<div id='user_title'>
	<h1>
		Bienvenue <?php	echo $info_user->row()->firstname;?> 
			<?php echo $info_user->row()->surname;?>
	</h1>
</div>

<div id='user_historique' style="overflow: auto;">
	<h2>Historique</h2>
		<ul>
		<?php foreach($query_visited_pieces->result() as $row){
			echo '<li>',anchor("/visit/view/$row->id", $row->title);
			}
		?>
		</ul>
</div>
<div id='user_map'>
	<?php echo $this->load->view('carte_expo_vues_user');?>
</div>


<div id='user_oeuvres_preferees' style="overflow: auto;">
	<h2>Oeuvres préférées</h2>
	<div style="overflow: auto;">
	<ul>
	<?php foreach($query_prefered_pieces->result() as $row){
		echo '<li style="list-style-type:none;">', anchor("/visit/view/$row->id", "<img class='icon' style='width:24px; height:24px;'  src='/images/coeur_24.png'/>$row->name");
		}
	?>
	</ul>
	</div>
</div>

<div id='user_demande'>
	<h1>Gérez votre exposition !</h1>
	<p>Cliquez sur le bouton ci-dessous pour nous 
	envoyer une demande de gestion d'expositions.</p>
	<p>Nous vous contacterons dans les plus brefs délais.</p>
	<div style="text-align:right;"><?php echo form_button('demande','Envoyer une demande');?>
	</div>
	<!-- le lien ci-dessous ouvre un popup twitter il suffit de le copier coller le twitt correspond � la page ou on se trouve-->
	<a id="twitter" href="javascript:void(0);" onclick="window.open('http://twitter.com/home?status=actuellement ici: <?php echo current_url()?>', '_blank', 'width=580px,height=250px,scrollbars=yes,status=no,resizable=yes');" value=""><font style="display:block; background-image: url(/images/twitter.png); width:48px; height:48px; background-color: transparent;">twitter</font></a>
</div>

<div id='user_pers'>
	<h2>Personnes ayant les memes gouts</h2>
		<ul>
			<?php 
			foreach($query_meme_gout_id->result() as $row){
				$id_user_meme_gout=$row->user_id;
				$query=$this->db->query("select firstname, surname from users where user_id=$id_user_meme_gout");
				foreach($query->result() as $rw){
			    	echo '<li>',$rw->firstname,' ', $rw->surname;	    	
				}
			}
			?>
		</ul>
</div>
